home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
comm
/
term
/
term_source.lha
/
Extras
/
Source
/
gtlayout-source.lha
/
LT_DisposeMenu.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-08-22
|
1KB
|
64 lines
/*
** GadTools layout toolkit
**
** Copyright © 1993-1996 by Olaf `Olsen' Barthel
** Freely distributable.
**
** :ts=4
*/
#ifndef _GTLAYOUT_GLOBAL_H
#include "gtlayout_global.h"
#endif
#ifdef DO_MENUS
/****** gtlayout.library/LT_DisposeMenu ******************************************
*
* NAME
* LT_DisposeMenu -- Release storage space allocated by
* LT_NewMenuTemplate or LT_NewMenuTagList (V11)
*
* SYNOPSIS
* LT_DisposeMenu(Menu)
* A0
*
* VOID LT_DisposeMenu(struct Menu *);
*
* FUNCTION
* Menus and MenuItems allocated by LT_NewMenuTemplate or
* LT_NewMenuTagList are deallocated.
*
* INPUTS
* Menu - Pointer to Menu structure as returned by
* LT_NewMenuTemplate or LT_NewMenuTagList. Passing
* NULL is harmless.
*
* RESULT
* none
*
* SEE ALSO
* gtlayout.library/LT_NewMenuTagList
* gtlayout.library/LT_NewMenuTemplate
*
******************************************************************************
*
*/
VOID LIBENT
LT_DisposeMenu(REG(a0) struct Menu *Menu)
{
if(Menu)
{
struct RootMenu *Root = (struct RootMenu *)((ULONG)Menu - offsetof(struct RootMenu,Menu));
FreeScreenDrawInfo(Root->Screen,Root->DrawInfo);
CloseFont(Root->Font);
AsmDeletePool(Root->Pool,SysBase);
}
}
#endif /* DO_MENUS */